package bjut.core.Message;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: zhuzhiming
 * @Date: 2022/4/8 22:26
 */

@Data
@Builder
public class RpcRequest implements Serializable {

    private static final long serialVersionUID = 2120448784545664210L;

    private String requestId;
    private String interfaceName;
    private String methodName;
    private Object[] parameters;
    private Class<?>[] paramTypes;
    private String version;
    private String group;


    public String getRpcServiceName() {
        return this.getInterfaceName() + "." + this.getGroup() + "." + this.getVersion();
    }

}
